package com.googlecode.afdbaccess.commandlinedemo.db;

import com.googlecode.afdbaccess.cache.Transaction;
import com.googlecode.afdbaccess.cache.exceptions.DataLayerException;
import com.googlecode.afdbaccess.cache.exceptions.DataLayerWrappedSqlException;

public class Update {
    public static int doUpdate(Transaction t) throws DataLayerWrappedSqlException, DataLayerException {
        String sql = "";
        sql += "UPDATE updTable\n";
        sql += "SET\n";
        sql += "  attributeTwo = 'x'\n";
        sql += "WHERE\n";
        sql += "  attributeOne = 0\n";
        
        return t.executeUpdate(sql, null);
    }
}
